package org.tong.configs;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author
 * @date 2022-08-01 14:23
 */
@Configuration
@EnableSwagger2
@EnableKnife4j
public class Swagger2Cfg {

    @Bean
    public Docket docket() {
        return new Docket(DocumentationType.OAS_30);
    }

   /* @Bean
    public Docket docketSwagger() {
        return new Docket(DocumentationType.OAS_30).;
    }*/
}
